﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SanJ.FreeCare.PractitionerRoles
{
    public class PractitionerAvailability
    {
        /// <summary>
        /// Times the {item} is available
        /// + Rule: Cannot include start/end times when selecting all day availability.
        /// 
        /// mon | tue | wed | thu | fri | sat | sun
        /// </summary>
        public string DaysOfWeekCode { get; private set; }

        /// <summary>
        /// Always available? i.e. 24 hour service
        /// 随时可用？ 即 24 小时服务
        /// </summary>
        public string AllDay { get; private set; }

        /// <summary>
        /// Opening time of day (ignored if allDay = true)
        /// 每天的开放时间（如果 allDay = true 则忽略）
        /// </summary>
        public string AvailableStartTime { get; private set; }

        /// <summary>
        /// Closing time of day (ignored if allDay = true)
        /// 一天中的收盘时间（如果 allDay = true，则忽略不计）
        /// </summary>
        public string AvailableEndTime { get; private set; }

        /// <summary>
        /// Not available during this time due to provided reason
        /// Reason presented to the user explaining why time not available
        /// 向用户说明无法提供时间的原因
        /// </summary>
        public string Description { get; private set; }

        /// <summary>
        /// Service not available during this period
        /// 在此期间不提供服务
        /// </summary>
        public string During { get; private set; }
    }
}
